/**
 * Created by leiweibo on 7/18/15.
 */
'use strict'
var app = angular.module('vistrackviewcontroller', []);

app.controller('VistrackViewCtrl', function($scope, $routeParams, VistrackService) {
  var patientId = $routeParams.param;
  VistrackService.list(patientId, function(res) {
    if (res.result == false) {
      $scope.error_msg = res.message;
    }
    $scope.vistracks = res.vistracks;
    $scope.patient = res.patient;
  });
});